<?php

// This is the configuration for yiic console application.
// Any writable CConsoleApplication properties can be configured here.
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'My Console Application',

	// preloading 'log' component
	'preload'=>array('log'),
	'import' => array(
		'application.components.*',
		'application.models.*',
		'application.components.*',
	),
		
	/*'import'=>array(
	    'application.models.*',
	), */
	/*'modules'=>array(
			'user'=>array(
					# encrypting method (php hash function)
					'hash' => 'md5',
			
					# send activation email
					'sendActivationMail' => true,
			
					# allow access for non-activated users
					'loginNotActiv' => false,
			
					# activate user on registration (only sendActivationMail = false)
					'activeAfterRegister' => false,
			
					# automatically login from registration
					'autoLogin' => true,
			
					# registration path
					'registrationUrl' => array('/user/registration'),
			
					# recovery password path
					'recoveryUrl' => array('/user/recovery'),
			
					# login form path
					'loginUrl' => array('/user/login'),
			
					# page after login
					'returnUrl' => array('/user/profile'),
			
					# page after logout
					'returnLogoutUrl' => array('/user/login'),
			),	
	),*/
	// application components
	'components'=>array(
		'db'=>array(
			'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',// testdrive.db数据库文件会保存了在data
			'charset'=>'utf8',
			'tablePrefix'=>'sqt_',
			'initSQLs'=>array('set names utf8'),
		),
		// uncomment the following to use a MySQL database
		/*
		'db'=>array(
			'connectionString' => 'mysql:host=localhost;dbname=testdrive',
			'emulatePrepare' => true,
			'username' => 'root',
			'password' => '',
			'charset' => 'utf8',
		),
		*/
		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'error, warning',
				),
			),
		),
	),
	/*'commandMap' => array(
        'migrate' => array(
        'modulePaths' => array(
            'user' => 'application.vendor.mishamx.yii-user.migrations',
        ),
        'database' => array(
        		'class' => 'vendor.schmunk42.database-command.EDatabaseCommand',
        ),        
      )
    )*/
);